<!--{block return}-->
		<!--{eval dsetcookie('token_sms_code','');}-->
		<script type="text/javascript" src="{$_G[setting][jspath]}smscode.js" reload="1" charset="UTF-8"></script>
		<!--{if $form}-->
			<form id="smscode_checkbox" action="misc.php?mod=smscode&action=ckecksubmit&smscodecheck={$modules}" onsubmit="return ajaxpost(this.id,'smscode_checkbox_return','smscode_checkbox_return','','','SMScode_ajaxpost_return()');" autocomplete="off" method="post">
			<input type="hidden" name="handlekey" value="$_GET['handlekey']" />
			<input type="hidden" name="referer" id="referer" value="$dreferer" />
			<input type="hidden" value="{FORMHASH}" name="formhash">
			<!--{if $_G[smscode_dreferer]}-->
				<input type="hidden" value="$_G[smscode_dreferer]" name="dreferer">
			<!--{/if}-->
			<input type="hidden" value="$modules" name="modules">
			<input type="hidden" value="true" name="smscodechecksubmit">
		<!--{/if}-->
		<p class="smscode_input" id="smscode_input">
		<!--{if $mobile}-->
			$mobile
            <!--{if !in_array($modules,array('1','2','4')) && $_GET['smscodecheck']}-->
                 <a href="home.php?mod=spacecp&ac=profile&op=mobile" target="_blank" class="xi2">{lang smscode_5}</a>
            <!--{/if}-->
		<!--{else}-->
			<input id="smscode_number" class=" px" type="text"  placeholder="{lang smscode_2}" name="mobile" value="" />
		<!--{/if}-->
		
		</p>
		
        <!--{eval
            $sechash = !isset($sechash) ? 'S'.($_G['inajax'] ?  : '').$_G['sid'] : $sechash.random(3);
            $sectpl = str_replace("'", "\'", $sectpl);
            $modid = random(3).random(3);
            $updatedom = random(5, 1);
        }-->
        <p class="smscode_seccode" id="smscode_seccode_$sechash" style="padding-bottom:5px;">
            <input name="smscode_seccode" id="smscode_seccodeverify_{$sechash}" type="text" autocomplete="off" style="width:120px" class="txt px vm">
            <img src="static/image/common/none.gif" width="16" height="16" class="vm" id="smscode_seccodestatus_{$sechash}">
            <img src="misc.php?mod=smscode&action=seccodeimgage&update={$updatedom}&idhash={$sechash}" id="smscode_seccode_img" class="vm" />
            <a href="javascript:;" class="xi2" id="smscode_seccodechange_{$sechash}">{lang seccode_change}</a>
        </p>
        <script type="text/javascript" reload="1">
		function SMScode_seccode(HASH){
			var seccodeverifysubmit = function(){
				var val = jQuery('#smscode_seccodeverify_'+HASH).val();
				if(val){
					jQuery.get('misc.php?mod=smscode&action=seccodecheck&secverify='+val+'&idhash='+HASH,function(s){
						
						if(s =='1'){
							jQuery('#smscode_seccodestatus_'+HASH).attr('src','static/image/common/check_right.gif');
							jQuery('#smscode_second').removeClass('a');
						}else{
							jQuery('#smscode_seccodestatus_'+HASH).attr('src','static/image/common/check_error.gif');
							jQuery('#smscode_seccode_img').attr('src','misc.php?mod=smscode&action=seccodeimgage&update='+Math.random()+'&idhash={$sechash}');
						}
					});
				}
			}
				
			jQuery('#smscode_seccode_img,#smscode_seccodechange_'+HASH).click(function(){
				jQuery('#smscode_seccodeverify_'+HASH).val('');
				jQuery('#smscode_seccode_img').attr('src','misc.php?mod=smscode&action=seccodeimgage&update='+Math.random()+'&idhash={$sechash}');
			});
			
			jQuery('#smscode_seccodeverify_'+HASH).focus(function(){
				jQuery('#smscode_seccodestatus_'+HASH).attr('src','static/image/common/none.gif');
			}).blur(function(){
				seccodeverifysubmit()
			});
			jQuery('#smscode_seccodesubmit_'+HASH).click(function(){
				seccodeverifysubmit()
			});
		}
		SMScode_seccode('{$sechash}');
		</script>
        <p class="smscode_code" id="smscode_code">
		<input id="smscode_code" class=" px" type="text"  placeholder="{lang smscode_4}"  name="smscode" style="width:120px" />
        <input id="smscode_second" class="smscode_btn" type="button"  value="{lang smscode_3}" onclick="SMScode(this,'{if !$mobile}smscode_number{/if}','$_G[setting][sms][sendtime]','$modules','$action')"  />
		</p>
		<!--{if $form}-->
			<p class="smscode_submit">
			<button type="submit" name="smscodechecksubmit" value="true" class="smscode_btn" /><strong>{lang submit}</strong></button>
			 <span id="smscode_checkbox_return" style="color:#f00"></span>
			</p>
			</form>
		<!--{/if}-->
        
<!--{/block}-->